<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="../include/laypublic.jsp" %>
<!DOCTYPE html>
<html>
<head>
<title>诉讼仲裁案件信息新增</title>
</head>
<style>
	.fieldset {
		margin-top: 5px;
		margin-bottom: 0px
	}
	
	.contract-box {
		width: 100%;
		min-height: 100px;
		margin-top:20px;
	}
	
	.contract-money {
		width: 94%;
		margin: 0px auto;
	}
	
	.contract-money .layui-table {
		margin: 0;
	}
	
	.contract-money th {
		text-align: center;
		height: 38px;
	}
	
	.contract-money .label {
		display: block;
		width: 45px !important;
		margin-left: 15px;
	}
		
	.layui-legend {
		background-color: #5fb878;
		font-size: 15px !important;
		width: 140px;
	}
	
	.layui-form-item {
		margin-bottom: 5px;
		clear: both;
		*zoom: 1;
	}
	
	.layui-form-label {
		width: 170px;
	}
</style>
<body>
	<div class="layui-fluid">
		<div class="layui-card">
			<div class="layui-tab-item layui-show">
				<div style="padding-top:15px;" >&nbsp;</div>
				<form class="layui-form" id="addInfo_form">
					<fieldset class="layui-elem-field layui-field-title fieldset" id="baseInfo" >
						<legend class="layui-btn layui-legend" style="text-align:left; cursor:default;" >基础信息 ></legend>
						<div style="margin-top: 20px" >
							<div class="layui-form-item" >
								<div class="layui-inline" >
									<label class="layui-form-label">申请公司</label>
									<div class="layui-input-inline">
										<input type="hidden" name="hrOrgid" value="${bindOrgId}">
										<input type="text" value="${bindOrgName}" style="border: 0px;"
											readonly="readonly" class="layui-input">
									</div>
								</div>
								<div class="layui-inline">
									<label class="layui-form-label">申请部门</label>
									<div class="layui-input-inline">
										<input type="hidden" name="hrDeptid" value="${bindDeptId}">
										<input type="text" value="${bindDeptName}"
											style="border: 0px;" readonly="readonly" class="layui-input">
									</div>
								</div>
								<div class="layui-inline">
									<label class="layui-form-label">申请人</label>
									<div class="layui-input-inline">
										<input type="hidden" name="hrStaffApplyid"
											value="${SESSION_KEY_USER_DETAIL.hrStaffId }"> <input
											type="text" name="staffName" value="${staffName }"
											readonly="readonly" style="border: 0px" autocomplete="off"
											class="layui-input">
									</div>
								</div>
							</div>
														
							<div class="layui-form-item">
								<div class="layui-inline">
									<label class="layui-form-label" >原申请单类型</label>
									<div class="layui-input-inline" >
									<select name="lawcaseType" id="add_select_lawcaseType" lay-filter="add_select_lawcaseType" lay-verify="required"> 
										<option value="" >请选择</option>
										<option value="01" >起诉案件</option>
										<option value="02" >上诉案件</option>
										<option value="03" >执行案件</option>
										<option value="04" >和解案件</option>
									</select>
									</div>
								</div>
								<div class="layui-inline">
									<label class="layui-form-label" >案件名称</label>
									<div class="layui-input-inline" >										
										<select name="proCodeAndCodes" id="add_select_sueLawcaseId" lay-filter="add_select_sueLawcaseId" lay-verify="required" lay-search>
										</select>
									</div>
								</div>
									<div class="layui-inline">
									<label class="layui-form-label" >立案单位</label>
									<div class="layui-input-inline" >
										<input type="hidden" id="id_hrOrgSet" name="hrOrgSetId">
										<input type="hidden" id="id_hrDeptSet" name="hrDeptSetId">
										<input type="text" id="id_deptSetName" name="deptName" readonly="readonly" style="border:0px" class="layui-input" >
									</div>
								</div>
							</div>
																			
							<div class="layui-form-item" >						
								<div class="layui-inline" >
									<label class="layui-form-label" id="setDateCode">立案日期/申请日期</label>
									<div class="layui-input-inline" >									    
									  	<input type="text" id="id_bringApplyDate" name="bringApplyDate" readonly="readonly" style="border:0px" class="layui-input" >
									</div>
								</div>
								<div class="layui-inline" >
									<label class="layui-form-label">案件标的额（万元）</label>
									<div class="layui-input-inline">
										<input type="text" id="id_targetAmount" name="targetAmount" readonly="readonly" style="border:0px" class="layui-input" >
									</div>
								</div>	
								<div class="layui-inline">
									<label class="layui-form-label" >发案单位</label>
									<div class="layui-input-inline" >
										<select name="bringFromTaker" id="add_select_bringFromTaker" lay-filter="add_select_bringFromTaker" lay-verify="required">
										</select>
									</div>
								</div>
							</div>
				
							<div class="layui-form-item">								
								<div class="layui-inline" >
									<label class="layui-form-label" >案件类型</label>
									<div class="layui-input-inline" >
										<select name="typeCase" lay-verify="required">
											<option value="" >请选择</option>
											<option value="01" >起诉</option>
											<option value="02" >应诉</option>
											<option value="03" >执行</option>
											<option value="04" >仲裁</option>
											<option value="05" >其他</option>											
										</select>
									</div>
								</div>								
								<div class="layui-inline" >
									<label class="layui-form-label" >是否结案</label>
									<div class="layui-input-inline">
										<select name="closeFlag" id="add_select_closeFlag" lay-filter="add_select_closeFlag" lay-verify="required">
											<option value="" >请选择</option>
											<option value="0" >未结</option>
											<option value="1" >已结</option>																						
										</select>
									</div>
								</div>		
									<div class="layui-inline">
									<label class="layui-form-label" >结案日期</label>
									<div class="layui-input-inline" >
									  	<input type="text" id="id_closeDate" name="closeDate" autocomplete="off" lay-verify="required" placeholder="结案日期" class="layui-input" readonly >
									</div>
								</div>						
							</div>							
							<div class="layui-form-item" >	
								<div class="layui-inline" >
									<label class="layui-form-label" >结案状态</label>
									<div class="layui-input-inline" >
										<select name="closeState" id="id_closeState" lay-verify="required">
											<option value=""  >请选择</option>
											<option value="01" >胜诉</option>
											<option value="02" >败诉</option>
											<option value="03" >和解</option>											
										</select>
									</div>
								</div>								
								<div class="layui-inline" >
									<label class="layui-form-label" >回款金额（万元）</label>
									<div class="layui-input-inline" >
										<input type="text" name="backAmount" maxlength="11" onblur="isNumberAndFloat1(this);arabiaToCN(this,2);" 
											placeholder="请输入回款金额" autocomplete="off" lay-verify="required|floatAmount" class="layui-input">
									</div>
								</div>	
								<div class="layui-inline" >
									<label class="layui-form-label" >挽损额（万元）</label>
									<div class="layui-input-inline" >
										<input type="text" name="tosaveAmount" maxlength="11" onblur="isNumberAndFloat1(this);arabiaToCN(this,2);"
											placeholder="请输入挽损额" autocomplete="off" lay-verify="required|floatAmount" class="layui-input">
									</div>
								</div>								
							</div>		
														
							<div class="layui-form-item">
								<div class="layui-inline" >
									<label class="layui-form-label" >赔偿额（万元）</label>
									<div class="layui-input-inline" >
										<input type="text" name="compensationAmount" maxlength="11" onblur="isNumberAndFloat1(this);arabiaToCN(this,2);"
											placeholder="请输入赔偿额" autocomplete="off" lay-verify="required|floatAmount" class="layui-input">
									</div>
								</div>
								<div class="layui-inline" >
									<label class="layui-form-label" >案由</label>
									<div class="layui-input-inline" >
										<input type="hidden" id="id_causeType" name="causeType">
										<input type="text" id="id_causeTypeName" readonly="readonly" style="border:0px" class="layui-input">
									</div>
								</div>
								<div class="layui-inline" >
									<label class="layui-form-label" >案件成因类型</label>
									<div class="layui-input-inline" >
										<select id="add_select_originType" name="originType" lay-filter="add_select_originType" lay-verify="required">
											<option value=""  >请选择</option>
											<option value="01" >起诉</option>
											<option value="02" >被诉</option>									
										</select>
									</div>
								</div>
							</div>		
														
							<div class="layui-form-item">
								<div class="layui-inline" id="sueTypeDiv" style="display:none;">
									<label class="layui-form-label" >因何起诉</label>
									<div class="layui-input-inline" >
										<select id="id_sueType" name="sueType" lay-verify="required">
											<option value=""  >请选择</option>
											<option value="01" >合资/合作开发房地产纠纷</option>
											<option value="02" >股权转让纠纷</option>	
											<option value="03" >催讨合作保证金</option>
											<option value="04" >催讨房款/租金</option>
											<option value="05" >解除房屋买卖合同</option>
											<option value="06" >施工单位工期违约</option>
											<option value="07" >催讨工程款</option>
											<option value="08" >催讨材料款</option>
											<option value="09" >分包单位工程质量问题</option>
											<option value="10" >工程违法分包</option>
											<option value="11" >分包单位管理不当</option>
											<option value="12" >加工合同纠纷</option>
											<option value="13" >催讨借款</option>
											<option value="14" >对赌协议未完成</option>
											<option value="15" >工商变更未按时完成、</option>
											<option value="16" >PPP项目与政府方对的履约争议</option>
											<option value="17" >PPP项目与项目运营方的履约争议</option>
											<option value="18" >PPP项目与其他供应商的履约争议</option>								
										</select>
									</div>
								</div>
								<div class="layui-inline" id="beSuedTypeDiv" style="display:none;">
									<label class="layui-form-label" >因何被诉</label>
									<div class="layui-input-inline" >
										<select id="id_beSuedType" name="beSuedType" lay-verify="required">
											<option value=""  >请选择</option>
											<option value="01" >广告/说辞失实</option>
											<option value="02" >逾期办证/逾期交房</option>
											<option value="03" >客户退房退定/客户断供</option>
											<option value="04" >规划设计变更</option>
											<option value="05" >面积差异</option>
											<option value="06" >工程量不予确认</option>
											<option value="07" >工程质量问题</option>
											<option value="08" >工程违法分包</option>
											<option value="09" >欠付工程款</option>
											<option value="10" >欠付材料款</option>
											<option value="11" >欠付分包款</option>
											<option value="12" >退还投标保证金</option>
											<option value="13" >退还履约保证金</option>
											<option value="14" >投资款迟延支付</option>
											<option value="15" >逾期还款</option>
											<option value="16" >PPP项目与政府方履约争议</option>
											<option value="17" >PPP项目与项目运营方履约争议</option>
											<option value="18" >PPP项目与其他供应商履约争议</option>
											<option value="99" >其他	</option>																				
										</select>
									</div>
								</div>
							</div>	
							
							<div class="layui-form-item">
								<div class="layui-inline">
									<div class="contract-box" id="lawcase-list">
				        				<div class="contract-money">
				            				<table class="layui-table">
							                    <colgroup>
							                        <col width="300">
							                        <col width="300" >
							                        <col width="900" >
							                    </colgroup>
											  <tbody>
											    <tr>
											      <td rowspan="3">案件当事人</td>
											      <td>原告</td>
											      <td><input type="text" id="id_caseTakerFrom" name="caseTakerFrom"  style="border:0px;" readonly="readonly" class="layui-input" ></td>
											    </tr>
											    <tr>
											      <td>被告</td>
											      <td><input type="text" id="id_caseTakerTo" name="caseTakerTo"  style="border:0px;" readonly="readonly" class="layui-input" ></td>
											    </tr>
											    <tr>
											      <td>第三人</td>
											      <td><input type="text" id="id_caseTakerThird" name="caseTakerThird" maxlength="100"
											      	placeholder="请输入第三人" autocomplete="off" lay-verify="required" class="layui-input"></td>
											    </tr>
											  </tbody>
						                	</table>
				               			</div>                									
									</div>
										
									<div class="contract-box" >
				        				<div class="contract-money">
				            				<table class="layui-table">
							                    <colgroup>
							                        <col width="300">
							                        <col width="150" >
							                        <col width="300" >
							                        <col width="150" >
							                        <col width="300" >
							                        <col width="150" >
							                        <col width="300" >
							                    </colgroup>
											  <tbody>
											    <tr>
											      <td rowspan="6">我方</td>
											      <td rowspan="2">发案单位</td>
											      <td rowspan="2"><input type="text" id="id_ourFromTaker" name="ourFromTaker"  style="border:0px;" readonly="readonly" class="layui-input"></td>
											      <td>负责人</td>
											      <td><input type="hidden" name="partakeTypeInfos" value="01"><input type="text" name="partakeInfos"  maxlength="50" placeholder="请输入负责人" autocomplete="off" lay-verify="required" class="layui-input"></td>
											      <td>电话</td>
											      <td><input type="text" name="partakeTelInfos" maxlength="50" placeholder="请输入电话" autocomplete="off" lay-verify="required|telNumber" class="layui-input"></td>
											    </tr>
											    <tr>
											      <td>联系人</td>
											      <td><input type="hidden" name="partakeTypeInfos" value="02"><input type="text" name="partakeInfos"  maxlength="50" placeholder="请输入联系人" autocomplete="off" lay-verify="required" class="layui-input"></td>
											      <td>电话</td>
											      <td><input type="text" name="partakeTelInfos" maxlength="50" placeholder="请输入电话" autocomplete="off" lay-verify="required|telNumber" class="layui-input"></td>
											    </tr>
											    <tr>
											      <td rowspan="2">办案部门</td>
											      <td rowspan="2"><input type="hidden" id="id_ourHrDeptId" name="ourHrDeptId"><input type="text" id="id_ourHrDeptName" name="ourHrDeptName" style="border:0px;" readonly="readonly" class="layui-input"></td>
											      <td>主办人</td>
											      <td><input type="hidden" name="partakeTypeInfos" value="03"><input type="text" name="partakeInfos"  maxlength="50" placeholder="请输入主办人" autocomplete="off" lay-verify="required" class="layui-input"></td>
											      <td>电话</td>
											      <td><input type="text" name="partakeTelInfos" maxlength="50" placeholder="请输入电话" autocomplete="off" lay-verify="required|telNumber" class="layui-input"></td>
											    </tr>
											    <tr>
											      <td>协办人（选填）</td>
											      <td><input type="hidden" name="partakeTypeInfos" value="04"><input type="text" name="partakeInfos"  maxlength="50" placeholder="请输入协办人" autocomplete="off" class="layui-input"></td>
											      <td>电话（选填）</td>
											      <td><input type="text" name="partakeTelInfos" maxlength="50" placeholder="请输入电话" autocomplete="off" onblur="checkTel(this)" class="layui-input"></td>
											    </tr>
											    <tr>
											      <td rowspan="2">律师事务所</td>
											      <td rowspan="2"><input type="text" name="ourLawFirm" maxlength="50" placeholder="请输入律师事务所" autocomplete="off" lay-verify="required" class="layui-input"></td>
											      <td>负责人</td>
											      <td><input type="hidden" name="partakeTypeInfos" value="05"><input type="text" name="partakeInfos"  maxlength="50" placeholder="请输入负责人" autocomplete="off" lay-verify="required" class="layui-input"></td>
											      <td>电话</td>
											      <td><input type="text" name="partakeTelInfos" maxlength="50" placeholder="请输入电话" autocomplete="off" lay-verify="required|telNumber" class="layui-input"></td>
											    </tr>
											    <tr>
											      <td>代理律师</td>
											      <td><input type="hidden" name="partakeTypeInfos" value="06"><input type="text" name="partakeInfos"  maxlength="50" placeholder="请输入代理律师" autocomplete="off" lay-verify="required" class="layui-input"></td>
											      <td>电话</td>
											      <td><input type="text" name="partakeTelInfos" maxlength="50" placeholder="请输入电话" autocomplete="off" lay-verify="required|telNumber" class="layui-input"></td>
											    </tr>
											  </tbody>
						                	</table>
				               			</div>                									
									</div>
											
											
								    <div class="contract-box" >
				        				<div class="contract-money">
				            				<table class="layui-table">
							                    <colgroup>
									                <col width="300">
							                        <col width="150" >
							                        <col width="300" >
							                        <col width="150" >
							                        <col width="300" >
							                        <col width="150" >
							                        <col width="300" >
							                    </colgroup>
													<tbody>
												    <tr>
												      <td rowspan="6">对方</td>
												      <td rowspan="2">发案单位</td>
												      <td rowspan="2"><input type="text" id="id_sideFromTaker" name="sideFromTaker" style="border:0px;" readonly="readonly" class="layui-input"></td>
												      <td>负责人</td>
												      <td><input type="hidden" name="partakeTypeInfos" value="11"><input type="text" name="partakeInfos"  maxlength="50" placeholder="请输入负责人" autocomplete="off" lay-verify="required" class="layui-input"></td>
												      <td>电话</td>
												      <td><input type="text" name="partakeTelInfos" maxlength="50" placeholder="请输入电话" autocomplete="off" lay-verify="required|telNumber" class="layui-input"></td>
												    </tr>
												    <tr>
												      <td>联系人</td>
												      <td><input type="hidden" name="partakeTypeInfos" value="12"><input type="text" name="partakeInfos"  maxlength="50" placeholder="请输入联系人" autocomplete="off" lay-verify="required" class="layui-input"></td>
												      <td>电话</td>
												      <td><input type="text" name="partakeTelInfos" maxlength="50" placeholder="请输入电话" autocomplete="off" lay-verify="required|telNumber" class="layui-input"></td>
												    </tr>
												    <tr>
												      <td rowspan="2">办案部门</td>
												      <td rowspan="2"><input type="text" name="sideHandleDept" maxlength="50" placeholder="请输入办案部门" autocomplete="off" lay-verify="required" class="layui-input"></td>
												      <td>负责人</td>
												      <td><input type="hidden" name="partakeTypeInfos" value="13"><input type="text" name="partakeInfos"  maxlength="50" placeholder="请输入负责人" autocomplete="off" lay-verify="required" class="layui-input"></td>
												      <td>电话</td>
												      <td><input type="text" name="partakeTelInfos" maxlength="50" placeholder="请输入电话" autocomplete="off" lay-verify="required|telNumber" class="layui-input"></td>
												    </tr>
												    <tr>
												      <td>承办人</td>
												      <td><input type="hidden" name="partakeTypeInfos" value="14"><input type="text" name="partakeInfos"  maxlength="50" placeholder="请输入承办人" autocomplete="off" lay-verify="required" class="layui-input"></td>
												      <td>电话</td>
												      <td><input type="text" name="partakeTelInfos" maxlength="50" placeholder="请输入电话" autocomplete="off" lay-verify="required|telNumber" class="layui-input"></td>
												    </tr>
												    <tr>
												      <td rowspan="2">律师事务所</td>
												      <td rowspan="2"><input type="text" name="sideLawFirm" maxlength="50" placeholder="请输入律师事务所" autocomplete="off" lay-verify="required" class="layui-input"></td>
												      <td>负责人</td>
												      <td><input type="hidden" name="partakeTypeInfos" value="15"><input type="text" name="partakeInfos"  maxlength="50" placeholder="请输入负责人" autocomplete="off" lay-verify="required" class="layui-input"></td>
												      <td>电话</td>
												      <td><input type="text" name="partakeTelInfos" maxlength="50" placeholder="请输入电话" autocomplete="off" lay-verify="required|telNumber" class="layui-input"></td>
												    </tr>
												    <tr>
												      <td>代理律师</td>
												      <td><input type="hidden" name="partakeTypeInfos" value="16"><input type="text" name="partakeInfos"  maxlength="50" placeholder="请输入代理律师" autocomplete="off" lay-verify="required" class="layui-input"></td>
												      <td>电话</td>
												      <td><input type="text" name="partakeTelInfos" maxlength="50" placeholder="请输入电话" autocomplete="off" lay-verify="required|telNumber" class="layui-input"></td>
												    </tr>
												  </tbody>
						                	</table>
				               			</div>                									
									</div>											
																				
  									<div class="contract-box" >
				        				<div class="contract-money">
				            				<table class="layui-table">
							                    <colgroup>
										            <col width="300">
							                        <col width="150" >
							                        <col width="300" >
							                        <col width="150" >
							                        <col width="300" >
							                        <col width="150" >
							                        <col width="300" >
							                    </colgroup>
												 <tbody>
												    <tr>
												      <td rowspan="12">法院、仲裁委员会（选填）</td>
												      <td rowspan="3">一审法院</td>
												      <td rowspan="3"><input type="text" name="firstCourt" maxlength="50" placeholder="请输入一审法院" autocomplete="off" class="layui-input"></td>
												      <td>审判长</td>
												      <td><input type="hidden" name="partakeTypeInfos" value="21"><input type="text" name="partakeInfos"  maxlength="50" placeholder="请输入审判长" autocomplete="off" class="layui-input"></td>
												      <td>电话</td>
												      <td><input type="text" name="partakeTelInfos" maxlength="50" placeholder="请输入电话" autocomplete="off" onblur="checkTel(this)" class="layui-input"></td>
												    </tr>
												    <tr>
												      <td>主审法官</td>
												      <td><input type="hidden" name="partakeTypeInfos" value="22"><input type="text" name="partakeInfos"  maxlength="50" placeholder="请输入主审法官" autocomplete="off" class="layui-input"></td>
												      <td>电话</td>
												      <td><input type="text" name="partakeTelInfos" maxlength="50" placeholder="请输入电话" autocomplete="off" onblur="checkTel(this)" class="layui-input"></td>
												    </tr>
												    <tr>
												      <td>其他法官</td>
												      <td><input type="hidden" name="partakeTypeInfos" value="23"><input type="text" name="partakeInfos"  maxlength="50" placeholder="请输入其他法官" autocomplete="off" class="layui-input"></td>
												      <td>电话</td>
												      <td><input type="text" name="partakeTelInfos" maxlength="50" placeholder="请输入电话" autocomplete="off" onblur="checkTel(this)" class="layui-input"></td>
												    </tr>
												    <tr>
												      <td rowspan="3">二审法院</td>
												      <td rowspan="3"><input type="text" name="secondCourt" maxlength="50" placeholder="请输入二审法院" autocomplete="off" class="layui-input"></td>
												      <td>审判长</td>
												      <td><input type="hidden" name="partakeTypeInfos" value="24"><input type="text" name="partakeInfos"  maxlength="50" placeholder="请输入审判长" autocomplete="off" class="layui-input"></td>
												      <td>电话</td>
												      <td><input type="text" name="partakeTelInfos" maxlength="50" placeholder="请输入电话" autocomplete="off" onblur="checkTel(this)" class="layui-input"></td>
												    </tr>
												    <tr>
												      <td>主审法官</td>
												      <td><input type="hidden" name="partakeTypeInfos" value="25"><input type="text" name="partakeInfos"  maxlength="50" placeholder="请输入主审法官" autocomplete="off" class="layui-input"></td>
												      <td>电话</td>
												      <td><input type="text" name="partakeTelInfos" maxlength="50" placeholder="请输入电话" autocomplete="off" onblur="checkTel(this)" class="layui-input"></td>
												    </tr>
												    <tr>
												      <td>其他法官</td>
												      <td><input type="hidden" name="partakeTypeInfos" value="26"><input type="text" name="partakeInfos"  maxlength="50" placeholder="请输入其他法官" autocomplete="off" class="layui-input"></td>
												      <td>电话</td>
												      <td><input type="text" name="partakeTelInfos" maxlength="50" placeholder="请输入电话" autocomplete="off" onblur="checkTel(this)" class="layui-input"></td>
												    </tr>
												    <tr>
												      <td rowspan="3">再审法院</td>
												      <td rowspan="3"><input type="text" name="lastCourt" maxlength="50" placeholder="请输入再审法院" autocomplete="off" class="layui-input"></td>
												      <td>审判长</td>
												      <td><input type="hidden" name="partakeTypeInfos" value="27"><input type="text" name="partakeInfos"  maxlength="50" placeholder="请输入审判长" autocomplete="off" class="layui-input"></td>
												      <td>电话</td>
												      <td><input type="text" name="partakeTelInfos" maxlength="50" placeholder="请输入电话" autocomplete="off" onblur="checkTel(this)" class="layui-input"></td>
												    </tr>
												    <tr>
												      <td>主审法官</td>
												      <td><input type="hidden" name="partakeTypeInfos" value="28"><input type="text" name="partakeInfos"  maxlength="50" placeholder="请输入主审法官" autocomplete="off" class="layui-input"></td>
												      <td>电话</td>
												      <td><input type="text" name="partakeTelInfos" maxlength="50" placeholder="请输入电话" autocomplete="off" onblur="checkTel(this)" class="layui-input"></td>
												    </tr>
												    <tr>
												      <td>其他法官</td>
												      <td><input type="hidden" name="partakeTypeInfos" value="29"><input type="text" name="partakeInfos"  maxlength="50" placeholder="请输入其他法官" autocomplete="off" class="layui-input"></td>
												      <td>电话</td>
												      <td><input type="text" name="partakeTelInfos" maxlength="50" placeholder="请输入电话" autocomplete="off" onblur="checkTel(this)" class="layui-input"></td>
												    </tr>
												    <tr>
												      <td rowspan="3">仲裁委员会</td>
												      <td rowspan="3"><input type="text" name="boardOfArb" maxlength="50" placeholder="请输入仲裁委员会" autocomplete="off" class="layui-input"></td>
												      <td>审判长</td>
												      <td><input type="hidden" name="partakeTypeInfos" value="31"><input type="text" name="partakeInfos"  maxlength="50" placeholder="请输入审判长" autocomplete="off" class="layui-input"></td>
												      <td>电话</td>
												      <td><input type="text" name="partakeTelInfos" maxlength="50" placeholder="请输入电话" autocomplete="off" onblur="checkTel(this)" class="layui-input"></td>
												    </tr>
												    <tr>
												      <td>主审法官</td>
												      <td><input type="hidden" name="partakeTypeInfos" value="32"><input type="text" name="partakeInfos"  maxlength="50" placeholder="请输入主审法官" autocomplete="off" class="layui-input"></td>
												      <td>电话</td>
												      <td><input type="text" name="partakeTelInfos" maxlength="50" placeholder="请输入电话" autocomplete="off" onblur="checkTel(this)" class="layui-input"></td>
												    </tr>
												    <tr>
												      <td>其他法官</td>
												      <td><input type="hidden" name="partakeTypeInfos" value="33"><input type="text" name="partakeInfos"  maxlength="50" placeholder="请输入其他法官" autocomplete="off" class="layui-input"></td>
												      <td>电话</td>
												      <td><input type="text" name="partakeTelInfos" maxlength="50" placeholder="请输入电话" autocomplete="off" onblur="checkTel(this)" class="layui-input"></td>
												    </tr>
												  </tbody>
						                	</table>
				               			</div>                									
									</div>																
																			
								</div>
							</div>	
											
							<div class="layui-form-item">
								<div class="layui-inline">
									<label class="layui-form-label" >基本案由</label>
									<div class="layui-input-inline" >
										<textarea lay-verify="required" maxlength="1000"  name="baseCaseReason"
											placeholder="请输入基本案由" class="layui-textarea" lay-verify="required"
											style="width: 899px; height: 90px;" ></textarea>
									</div>
								</div>
							</div>				
							<div class="layui-form-item">
								<div class="layui-inline">
									<label class="layui-form-label" >案件办理、进展情况（选填）</label>
									<div class="layui-input-inline" >
										<textarea maxlength="1000"  name="caseProgress"
											placeholder="请输入案件办理、进展情况" class="layui-textarea"
											style="width: 899px; height: 90px;" ></textarea>
									</div>
								</div>
							</div>				
							<div class="layui-form-item" >
								<div class="layui-inline">
									<label class="layui-form-label" >风险评估及解决方案（包括困难、问题及解决方法）（选填）</label>
									<div class="layui-input-inline" >
										<textarea maxlength="1000" name="riskMemo"
											placeholder="请输入风险评估及解决方案（包括困难、问题及解决方法）" class="layui-textarea"
											style="width: 899px; height: 90px;" ></textarea>
									</div>
								</div>
							</div>								
							<div class="layui-form-item"  >
								<div class="layui-inline" >
									<label class="layui-form-label" >案件成因剖析及改进意见（包括管理漏洞与整改意见）（选填）</label>
									<div class="layui-input-inline" >
										<textarea maxlength="1000" name="adviseMemo" 
											placeholder="请输入案件成因剖析及改进意见（包括管理漏洞与整改意见）" class="layui-textarea"
											style="width: 899px; height: 90px;" ></textarea>
									</div>
								</div>
							</div>															
							<div class="layui-form-item">
								<div class="layui-inline">
									<label class="layui-form-label" >案件办理结果（选填）</label>
									<div class="layui-input-inline" >
										<textarea maxlength="1000" name="resultMemo" 
											placeholder="请输入案件办理结果" class="layui-textarea"
											style="width:899px;height:90px;" ></textarea>
									</div>
								</div>
							</div>
						</div>
					</fieldset>
					<fieldset class="layui-elem-field layui-field-title fieldset">
						<legend class="layui-btn layui-legend"
							style="text-align: left; cursor: default;">附件信息 ></legend>
						<div style="margin-top: 20px;">
							<div class="layui-form-item">
								<label class="layui-form-label" style="width: 350px;">支持pdf、excel、word、图片资料，可上传多个</label>
							</div>												
							<div class="layui-form-item">
								<label class="layui-form-label" >案件办理思路、方案、措施</label>
								<div class="layui-input-block">
									<div class="layui-upload">
										<button type="button" class="layui-btn" id="1-upload-more">上传</button>
										<div class="layui-upload-list" id="1-upload-more-list">
										</div>
									</div>
								</div>
							</div>							
							<div class="layui-form-item">
								<label class="layui-form-label" >其他附件（选填）</label>
								<div class="layui-input-block" >
									<div class="layui-upload"  >
										<button type="button" class="layui-btn" id="2-upload-more">上传</button>
										<div class="layui-upload-list" id="2-upload-more-list">
										</div>
									</div>
								</div>
							</div>							
						</div>
					</fieldset>

					<div class="layui-form-item"
						style="position: fixed ! important; right: 30px; bottom: 45%; z-index: 10000;">
						<div class="layui-input-block">
							<button
								class="layui-btn layui-bg-blue layui-btn-normal layui-btn-lg  layui-btn-radius"
								type="button" lay-submit lay-filter="addInfo_form_submit"
								id="addInfo_form_submit">
								<i class="layui-icon layui-icon-ok layuiadmin-button-btn"></i>提交
							</button>
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>
<script>

//静态资源路径前缀
var staticPath = '${fileHttpPre}';
var stateJSON = <infopub:dicJson groupNo="A00010028" />;
var causeTypeJSON = {"01":"建设工程合同纠纷","02":"买卖合同纠纷","03":"租赁合同纠纷","04":"房屋买卖合同纠纷"
	,"05":"设计合同纠纷","06":"营销合同纠纷","07":"借款合同纠纷","08":"投/融资合同纠纷"
	,"09":"抵押/质押合同纠纷","10":"担保合同纠纷","11":"保险合同纠纷","12":"设备安装合同纠纷"
	,"13":"加工承揽合同纠纷","14":"服务合同纠纷","99":"其他"};
layui.config({
	base : '${ctx}/resources/layuiadmin/' //静态资源所在路径
		}).extend({
			index : 'lib/index' //主入口模块
		}).use([ 'index', 'set', 'upload', 'element', 'laydate' ],function() {
			var $ = layui.$, form = layui.form, element = layui.element, laydate = layui.laydate, upload = layui.upload;
			// 正则校验
			form.verify({
				//验证汉字
				CHS : [ /^[\u0391-\uFFE5]+$/, '只能输入汉字' ],
				//大于0的正整数
				intNumber : [ /^[1-9]\d*$/, '请输入正确的数字' ],
				//数字只能有两位小数
				floatNumber : [/^([-]?)([0-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/,'请输入正确的数字' ],
				//电话号码
				telNumber:[/^((0\d{2,3}-\d{7,8})|([1][3,4,5,7,8,9][0-9]{9}))$/,'请输入正确的号码'], 
				//数字大于0，并只能有两位小数
				floatAmount : [/^([1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/, '请输入正确的数字' ]
				//var pattern=/^((\d+\.\d*[1-9]\d{1})|(\d*[1-9]\d*\.\d{2}))$/; 
			});
					
			laydate.render({
		        elem: '#id_closeDate'
		        ,trigger: 'click'
		    });
			
			var uploadRender = function(id) {
			upload.render({
				elem : '#' + id + '-upload-more',
				url : basePath+'/lawcaseInfo/uploadAtt/',
				data : {
					types : id
				},
				multiple : true,
				accept : 'file',
				acceptMime : 'application/zip,application/x-rar-compressed,image/jpeg,image/png,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.ms-powerpoint,application/vnd.openxmlformats-officedocument.presentationml.presentation,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/pdf',
				before : function(obj) {
					layer.load();
				},
				done : function(res) {
					if (res.code > 0) {
						layer.closeAll('loading');
						return layer.msg(res.msg, {
							icon : 7
						});
					}
					if (res.entity != null&& res.entity.length > 0) {
						for ( var i in res.entity) {
							var preProject = res.entity[i];
							var arr = preProject
									.split("|");
							var imgSrc = "";
							var suffix = arr[1].substring(arr[1].lastIndexOf(".") + 1,arr[1].length);
							if (suffix == 'jpg'|| suffix == 'png') {
								imgSrc = "${fileHttpPre}/"+arr[3];
							} else {
								imgSrc = "${ctx}/resources/images/"+suffix+".jpg";
							}
							$('#'+id+'-upload-more-list').append('<div class="layui-upload-img-div" id="upload_img_'+arr[2]+'"><img src="'+imgSrc+'" title="'+ arr[1] +'" class="layui-upload-img"><div class="mask"><a href="javascript:void(0)" onclick="showImg(\''+"${fileHttpPre}"+arr[3]+'\');">查看</a><a href="javascript:void(0)" onclick="del(\''+arr[2]+'\')";>删除</a></div><p>'+arr[1]+ '</p><input type="hidden" value="'+preProject+'" id="fileAtt_'+arr[2]+'" name="fileAtts'+id+'" ></input></div>');
						}
					}
				},
				allDone : function(obj) {
					layer.closeAll('loading');
				},
				error : function() {
					layer.closeAll('loading');
					layer.msg("上传失败，请稍后再试~", {
						icon : 7
					});
				}
			});
			}
			uploadRender(1);
			uploadRender(2);
			
			//监听原申请单类型
			form.on('select(add_select_lawcaseType)', function(data) {
				var lawcaseType = data.value;
				if(lawcaseType==''||lawcaseType==null){
					layer.msg('请选择原申请单类型',{icon: 1});
		    		$("#add_select_sueLawcaseId").html('');
		    		$("#id_deptSetName").val('');
					$("#id_bringApplyDate").val('');
					$("#id_targetAmount").val('');
					$("#add_select_bringFromTaker").html('');
					$("#id_causeTypeName").val('');
					$("#id_caseTakerFrom").val('');
					$("#id_caseTakerTo").val('');
					$("#id_ourFromTaker").val('');
					$("#id_ourHrDeptName").val('');
					$("#id_sideFromTaker").val('');
					form.render();
		    		return;
		    	}else{	
		    		$("#add_select_sueLawcaseId").html('');
		    		$("#id_deptSetName").val('');
					$("#id_bringApplyDate").val('');
					$("#id_targetAmount").val('');
					$("#add_select_bringFromTaker").html('');
					$("#id_causeTypeName").val('');
					$("#id_caseTakerFrom").val('');
					$("#id_caseTakerTo").val('');
					$("#id_ourFromTaker").val('');
					$("#id_ourHrDeptName").val('');
					$("#id_sideFromTaker").val('');
					$.ajax({
						type : "POST", //提交方式  
						url : "${ctx}/lawcaseInfo/getLawcaseByType",//路径  
						data : {
							"lawcaseType" : lawcaseType
						},//数据，这里使用的是Json格式进行传输  
						success : function(result) {//返回数据根据结果进行相应的处理 
							if (result.flag == true) {
								//原申请单类型带出审核通过的案件名称
								var strLawcaseName = "";
								strLawcaseName+='<option value="">请选择</option>';
								if(result.lawcases.length > 0){
									layui.$.each(result.lawcases, function(i,item){										
										strLawcaseName+= '<option value='+item.lawcaseName+"_"+item.id+'>'+item.lawcaseName+'</option>';																
									});
								}
								$("#add_select_sueLawcaseId").append(strLawcaseName);
								form.render();
							}else{
								layer.msg('未查询到审核通过的案件名称记录~',{icon: 0});
							}
						}
					});
		    	}								
			});
			
			//监听案件名称
			form.on('select(add_select_sueLawcaseId)', function(data) {
				var id = data.value;
				if(id==''||id==null){
		    		layer.msg('请选择案件名称',{icon: 1});
		    		$("#id_deptSetName").val('');
					$("#id_bringApplyDate").val('');
					$("#id_targetAmount").val('');
					$("#add_select_bringFromTaker").html('');
					$("#id_causeTypeName").val('');
					$("#id_caseTakerFrom").val('');
					$("#id_caseTakerTo").val('');
					$("#id_ourFromTaker").val('');
					$("#id_ourHrDeptName").val('');
					$("#id_sideFromTaker").val('');	
					form.render();
		    		return;
		    	}else{
		    		$("#id_deptSetName").val('');
					$("#id_bringApplyDate").val('');
					$("#id_targetAmount").val('');
					$("#add_select_bringFromTaker").html('');
					$("#id_causeTypeName").val('');
					$("#id_caseTakerFrom").val('');
					$("#id_caseTakerTo").val('');
					$("#id_ourFromTaker").val('');
					$("#id_ourHrDeptName").val('');
					$("#id_sideFromTaker").val('');
		    		var lawcaseType = $("#add_select_lawcaseType").val()
		    		getLawcaseInfoById(id,lawcaseType);
		    	}									
			});
			
			//监听发案单位
			form.on('select(add_select_bringFromTaker)', function(data) {
				var id = data.value;
				if(id==''||id==null){
		    		layer.msg('请选择发案单位',{icon: 1});
		    		$("#id_ourFromTaker").val('');
		    		$("#id_sideFromTaker").val('');	
		    		form.render();
		    		return;
		    	}else{
		    		//已知原申请单类型的发案单位双方中的双方
		    		var str1 = $("#add_select_bringFromTaker option:selected").html();
		    		$("#id_ourFromTaker").val(str1);//我方发案单位与上方发案单位相同
		    		$("#add_select_bringFromTaker option").each(function(i) {
		    			var str2 = $(this).html();
		    			if(str2!=str1 && str2!='请选择'&& str2!=''){
		    				$("#id_sideFromTaker").val(str2);
		    			}
		    		});
		    		form.render();
		    	}	
			});
			
			//监听是否结案
			form.on('select(add_select_closeFlag)', function(data) {
				var id = data.value;
				if(id==''||id==null){
		    		layer.msg('请选择是否结案',{icon: 1});			
		    		return;
		    	}else{
		    		if(id=='1'){//结案时结案日期和结案状态为必填
		    			$("#id_closeDate").attr("lay-verify","required");
		    			$("#id_closeState").attr("lay-verify","required");
		    		}else if(id=='0'){//未结案时结案日期和结案状态移除必填
		    			$("#id_closeDate").removeAttr("lay-verify");
		    			$("#id_closeState").removeAttr("lay-verify");
		    		}	
		    		form.render();
		    	}				
			});
			//监听案件成因类型
			form.on('select(add_select_originType)', function(data) {
				var id = data.value;
				if(id==''||id==null){
		    		layer.msg('请选择案件成因类型',{icon: 1});			
		    		return;
		    	}else{
		    		if(id=='01'){//案件成因类型为起诉,显示因何起诉,隐藏因何被诉
		    			$("#sueTypeDiv").css("display","block");
		    			$("#beSuedTypeDiv").css("display","none");
		    			$("#id_sueType").attr("lay-verify","required");
		    			$("#id_beSuedType").removeAttr("lay-verify");
		    		}else if(id=='02'){//案件成因类型为被诉,隐藏因何起诉,显示因何被诉
		    			$("#sueTypeDiv").css("display","none");
		    			$("#beSuedTypeDiv").css("display","block");
		    			$("#id_sueType").removeAttr("lay-verify");
		    			$("#id_beSuedType").attr("lay-verify","required");
		    		}	
		    		form.render();
		    	}		
			});
			
			//监听提交
			form.on('submit(addInfo_form_submit)',function(data) {
				//判断是否上传了案件办理思路、方案、措施
				if ($("input[name=fileAtts1]").length < 1) {
					layer.msg("案件办理思路、方案、措施未上传", {
						icon : 0
					});
					return;
				}
				$("#addInfo_form_submit").removeAttr("lay-submit").removeClass("layui-bg-blue").addClass("layui-btn-disabled");
				layer.load();
				//提交 Ajax 成功后，静态更新表格中的数据
				$.ajax({
					type : 'post',
					url : basePath + '/lawcaseInfo/save',
					data : $('#addInfo_form').serialize(),
					success : function(result) {
						if (result.success) {
							layer.closeAll('loading'); //关闭loading
							layer.msg('提交单据成功~',{
								icon : 1
							});
							//两秒后关闭当前页面
							setTimeout(function() {
								/**
								 * 查找父菜单，并刷新
								 */
								var topDoc = $(window.top.document);
								var path = basePath+'/lawcaseInfo/list';
								// 获取页面名称
								var name = topDoc.find(".layui-nav-item [lay-href^='"+path+"']").text();
								if (name == '' || name == null) {
									name = '诉讼仲裁案件信息';
								}
								window.parent.layui.index.openTabsPage(path,name);
								var iframe = window.parent.layui.admin
										.tabsBody(window.parent.layui.admin.tabsPage.index).find(".layadmin-iframe");
								iframe[0].contentWindow.location.reload(true);

								/**
								 * 关闭当前页
								 */
								var currPath = basePath+'/lawcaseInfo/add';
								var layid = topDoc.find("li[lay-id^='"+ currPath+ "']").attr('lay-id');
								window.parent.layui.element.tabDelete('layadmin-layout-tabs',layid);//关闭当前页
							},2000);
						} else {
							layer.closeAll('loading'); //关闭loading
							$("#addInfo_form_submit").removeClass("layui-btn-disabled").addClass("layui-bg-blue").attr("lay-submit","");
							layer.msg(result.msg,{icon : 7});
						}
					}
				});
			});
			// data-type事件
			$('.layui-btn.layuiadmin-btn-admin').on('click',function() {
				var type = $(this).data('type');
				active[type] ? active[type].call(this): '';
			});
		});

		//删除文件
		function del(index) {
			layui.$("#fileAtt_" + index).remove();
			layui.$("#upload_img_" + index).remove();
		}

		//根据url查看文件
		function showImg(url) {
			var openWin = window.open(url,'','left=410,height=768, width=1024, top=200,  toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no');
		}

		//'请输入正确数字，且保留两位小数！'
		function isNumberAndFloat1(str) {
			var $ = layui.$, form = layui.form
			if (str.value == '' || str.value == null) {
				return;
			}
			var rgx = /^([-]?)([0-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/;
			var boolrgx = rgx.test(str.value);// true 
			if (boolrgx) {
				return true;
			} else {
				str.value =0;
				layer.msg('请输入正确数字，且保留两位小数！');
				return false;
			}
		}
		//'请输入正确电话号码！'
		function checkTel(str) {
			var $ = layui.$, form = layui.form
			if (str.value == '' || str.value == null) {
				return;
			}
			var rgx1 =/^[1][3,4,5,7,8,9][0-9]{9}$/;//手机号码校验
			var rgx2 =/^0\d{2,3}-?\d{7,8}$/;//固定电话校验
			var boolrgx1 = rgx1.test(str.value);
			var boolrgx2 = rgx2.test(str.value);
			if (boolrgx1==true||boolrgx2==true) {
				return true;
			} else {
				str.value ='';
				layer.msg('请输入正确电话号码！');
				return false;
			}
		}
		
		//根据案件名称带出诉讼仲裁案件需要的字段
		function getLawcaseInfoById(id,lawcaseType) {
			var $ = layui.$, form = layui.form, laydate=layui.laydate,upload = layui.upload
			$.ajax({
				type : "POST", //提交方式  
				url : "${ctx}/lawcaseInfo/getLawcaseInfoById",//路径  
				data : {
					"proCodeAndCodes" : id,
					"lawcaseType" : lawcaseType
				},//数据，这里使用的是Json格式进行传输  
				success : function(result) {//返回数据根据结果进行相应的处理 
					if (result.flag == true) {
						//案件名称带出相关信息
						if(result.lawcaseVo!=null){
							//带出立案单位（案件申请公司）
							if(result.lawcaseVo.hrDeptId!=null&&result.lawcaseVo.hrDeptId!=''){
								$("#id_hrDeptSet").val(result.lawcaseVo.hrDeptId);
								$("#id_deptSetName").val(result.lawcaseVo.deptName);
							}
							//带出案件申请部门
							if(result.lawcaseVo.hrOrgId!=null&&result.lawcaseVo.hrOrgId!=''){
								$("#id_hrOrgSet").val(result.lawcaseVo.hrOrgId);
							}
							//带出案件标的额
							if(result.lawcaseVo.targetAmount!=null&&result.lawcaseVo.targetAmount!=''){
								$("#id_targetAmount").val(result.lawcaseVo.targetAmount);
							}
							//带出案由
							if(result.lawcaseVo.causeType != null){
								layui.$.each(causeTypeJSON, function(i,item){
									if(result.lawcaseVo.causeType==i){
										$("#id_causeTypeName").val(item);
										$("#id_causeType").val(result.lawcaseVo.causeType);
									}							
								});
							}
							//根据原申请单类型和案件名称带出所属类型的立案日期或申请日期
							var bringApplyDate = '';
							if(lawcaseType=='01'){//起诉案件
								bringApplyDate = layui.util.toDateString(result.lawcaseVo.setDate,"yyyy-MM-dd");	
								$("#id_bringApplyDate").val(bringApplyDate);
								$("#setDateCode").text("立案日期");
							}else if(lawcaseType=='02'){//上诉案件
								bringApplyDate = layui.util.toDateString(result.lawcaseVo.upwardDate,"yyyy-MM-dd");	
								$("#id_bringApplyDate").val(bringApplyDate);
								$("#setDateCode").text("上诉申请日期");
							}else if(lawcaseType=='03'){//执行案件
								bringApplyDate = layui.util.toDateString(result.lawcaseVo.carryDate,"yyyy-MM-dd");	
								$("#id_bringApplyDate").val(bringApplyDate);
								$("#setDateCode").text("执行申请日期");
							}else if(lawcaseType=='04'){//和解案件
								bringApplyDate = layui.util.toDateString(result.lawcaseVo.peaceDate,"yyyy-MM-dd");	
								$("#id_bringApplyDate").val(bringApplyDate);
								$("#setDateCode").text("和解申请日期");
							}
							
							//根据原申请单类型和案件名称带出所属类型的发案单位集合
							var strSueLawcase ='';
							var strUpwardLawcase ='';
							var strCarryLawcase ='';
							var strPeaceLawcase ='';
							if(lawcaseType=='01'){//起诉案件
								strSueLawcase+= '<option value="">请选择</option>';
								strSueLawcase+= '<option value='+result.lawcaseVo.plaintiff+'>'+result.lawcaseVo.plaintiff+'</option>';
								strSueLawcase+= '<option value='+result.lawcaseVo.defendant+'>'+result.lawcaseVo.defendant+'</option>';
								$("#add_select_bringFromTaker").append(strSueLawcase);							
							}else if(lawcaseType=='02'){//上诉案件
								strUpwardLawcase+= '<option value="">请选择</option>';
								strUpwardLawcase+= '<option value='+result.lawcaseVo.upwardMan+'>'+result.lawcaseVo.upwardMan+'</option>';
								strUpwardLawcase+= '<option value='+result.lawcaseVo.passiveUpwardMan+'>'+result.lawcaseVo.passiveUpwardMan+'</option>';	
								$("#add_select_bringFromTaker").append(strUpwardLawcase);								
							}else if(lawcaseType=='03'){//执行案件
								strCarryLawcase+= '<option value="">请选择</option>';
								strCarryLawcase+= '<option value='+result.lawcaseVo.applyEnforcer+'>'+result.lawcaseVo.applyEnforcer+'</option>';
								strCarryLawcase+= '<option value='+result.lawcaseVo.actEnforcer+'>'+result.lawcaseVo.actEnforcer+'</option>';	
								$("#add_select_bringFromTaker").append(strCarryLawcase);
							}else if(lawcaseType=='04'){//和解案件
								strPeaceLawcase+= '<option value="">请选择</option>';
								strPeaceLawcase+= '<option value='+result.lawcaseVo.bringFromMan+'>'+result.lawcaseVo.bringFromMan+'</option>';
								strPeaceLawcase+= '<option value='+result.lawcaseVo.bringToMan+'>'+result.lawcaseVo.bringToMan+'</option>';	
								$("#add_select_bringFromTaker").append(strPeaceLawcase);
							}
							//根据原申请单类型和案件名称带出所属类型的案件当事人原告
							if(lawcaseType=='01'){//起诉案件 原告
								$("#id_caseTakerFrom").val(result.lawcaseVo.plaintiff);							
							}else if(lawcaseType=='02'){//上诉案件 上诉人
								$("#id_caseTakerFrom").val(result.lawcaseVo.upwardMan);							
							}else if(lawcaseType=='03'){//执行案件 申请执行人
								$("#id_caseTakerFrom").val(result.lawcaseVo.applyEnforcer);	
							}else if(lawcaseType=='04'){//和解案件 原告/上诉人/执行人
								$("#id_caseTakerFrom").val(result.lawcaseVo.bringFromMan);	
							}
							//根据原申请单类型和案件名称带出所属类型的案件当事人被告
							if(lawcaseType=='01'){//起诉案件 被告
								$("#id_caseTakerTo").val(result.lawcaseVo.defendant);							
							}else if(lawcaseType=='02'){//上诉案件 被上诉人
								$("#id_caseTakerTo").val(result.lawcaseVo.passiveUpwardMan);							
							}else if(lawcaseType=='03'){//执行案件 被执行人
								$("#id_caseTakerTo").val(result.lawcaseVo.actEnforcer);	
							}else if(lawcaseType=='04'){//和解案件 被告/被上诉人/被执行人
								$("#id_caseTakerTo").val(result.lawcaseVo.bringToMan);	
							}
							//带出我方办案部门（立案单位）
							if(result.lawcaseVo.hrDeptId!=null&&result.lawcaseVo.hrDeptId!=''){
								$("#id_ourHrDeptId").val(result.lawcaseVo.hrDeptId);
								$("#id_ourHrDeptName").val(result.lawcaseVo.deptName);
							}						
							form.render();
						}else{
							layer.msg('数据通信异常~',{icon: 0});
						}					
					}
				}
			});
		}
	</script>
</body>
</html>

